/*
 * @Author: your name
 * @Date: 2020-08-24 17:28:56
 * @LastEditTime: 2020-08-24 18:59:58
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \新建文件夹\two-app\src\api\addQuestions.js
 */
import { getUrl, postUrl } from '../utils/https'

// 请求所有考试类型
export const getExamType = () => {
  return getUrl('/exam/examType')
}

// 获取所有的课程类型
export const getSubject = () => {
  return getUrl('/exam/subject')
}

// 获取所有的题目类型
export const getQuestionsType = () => {
  return getUrl('/exam/getQuestionsType')
}

// 添加试题接口
export const addQuestions = (data) => {
  return postUrl('/exam/questions', data)
}
